Xceed .NET Libraries Documentation
Xceed.Zip Assembly / Xceed.Zip.ReaderWriter Namespace / ZipReader Class / ReadItemData Method / ReadItemData(Stream,Byte[]) Method


In This Topic
    ReadItemData(Stream,Byte[]) Method
    In This Topic
    Reads a sequence of bytes from the ZipReader's stream and advances the position within by the number of bytes read.
    Syntax
    'Declaration
     
    
    Public Overloads Function ReadItemData( _
       ByVal stream As Stream, _
       ByVal buffer() As Byte _
    ) As Long
    'Usage
     
    
    Dim instance As ZipReader
    Dim stream As Stream
    Dim buffer() As Byte
    Dim value As Long
     
    value = instance.ReadItemData(stream, buffer)
    public long ReadItemData( 
       Stream stream,
       byte[] buffer
    )

    Parameters

    stream
    buffer

    Return Value

    The total number of bytes read into buffer. This can be less than the number of bytes requested if that many bytes are not currently available, or zero (0) if the end of the stream has been reached.
    Remarks
    Regardless of the compression method that is used, it is not possible to read 0-byte files.buffer
    Supported Frameworks
    buffer
    See Also